<template name="goodCnt">
	<view class="goodInfoCnt">
		<text class="dtText">{{goodData.intro}}</text>
		<block v-for="(item,index) in goodData.detailList" :key="index">
			<view v-if="item.type==1">
				<image :src="item.url" mode="widthFix"></image>
			</view>
		</block>
	</view>
</template>

<script>
	import {mapState,mapGetters,mapMutation,mapActions} from "vuex";
	export default{	
		name:'goodCnt',		//组件名称
		// 传递参数
		props:{
			goodData:{
				type:Object,
				default:()=>{
					return {
						intro:'',
						detailList:[]
					}
				}
			}
		},
		// 组件参数
		data(){
			return {
				data1: 'value1'
			}
		},
		// 组件方法
		methods:{
			mtd1(){
				
			}
		}
	}
</script>

<style lang="less">
	.goodInfoCnt{
		display: flex;
		flex-direction: column;
		.dtText{
			margin-bottom: 20upx;
			font-size: 32upx;
			color: #202932;
		}
		image{
			width: 100%;
		}
	}
</style>
